
package com.suarte.webapp.action;

import com.suarte.core.DeliveryTime;
import java.io.Serializable;
import java.util.List;
import org.appfuse.service.GenericManager;

/**
 * @date   Jan 13, 2013
 * @author Ggutierrez
 */
public class DeliveryTimeList extends BasePage implements Serializable {
    private GenericManager<DeliveryTime, Long> deliveryTimeManager;

    public void setDeliveryTimeManager(GenericManager<DeliveryTime, Long> deliveryTimeManager) {
        this.deliveryTimeManager = deliveryTimeManager;
    }

    public DeliveryTimeList() {
        setSortColumn("id"); // sets the default sort column
    }

    public List getDeliveryTimes() {
        return sort(deliveryTimeManager.getAll());
    }
}
